@extendable function priority_check(tx_body: gtx_transaction_body, tx_size: integer, tx_enter_timestamp: integer, current_timestamp: integer): priority_state_v1?

Extendable function that allows to define custom prioritization strategies. If unimplemented, it will return no_op_priority_state(), which means everything will have a priority of zero.

If any extension of this function throws, the transaction will be rejected.

Parameters

  • tx_body — the transaction
  • tx_size — size of the transaction in bytes
  • tx_enter_timestamp — when the transaction entered the queue
  • current_timestamp — the current timestamp
© 2024 Chromia